<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn"%>
<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<!DOCTYPE HTML>

<html>
<head>
<jsp:include page="../defaults/tagHeadContent.jsp" />
<script src="/srp/js/jquery-1.7.js"></script>
<script type="text/javascript" src="/srp/js/checkBoxsManage.js"></script>

</head>
<body>
	<jsp:include page="../defaults/header.jsp" />
	<div id="wrapper">
		<div id="content">
			<jsp:include page="../defaults/sidebar.jsp" /></div>

		<div id="list">
			<form id="formTaskList" name="formTaskList" action="" method="POST">

				<jsp:include page="listTasksPrint.jsp" />
				<table>
					<tr>
						<td style="border: none;"><input type="button"
							value="Associar tópicos" id="btCreateTopic"
							onclick='document.getElementById("formTaskList").action="/srp/task/selectTopics"'></input>
						</td>
						<td style="border: none;"><input type="button"
							value="Associar avaliadores" id="btLinkValues"
							onclick='document.getElementById("formTaskList").action="/srp/task/selectEvaluators"'></input>
						</td>
					</tr>
				</table>
				<input type="hidden" name="selectedIdsOfTasks"
					id="selectedIdsOfTasks" value="${selectedIdsOfTasks}" />
			</form>
		</div>
		<div style="clear: both;">&nbsp;</div>
	</div>

	<script type="text/javascript">
		activate_CheckAll("chkTask_", "chkTasks_all");

		$('#btCreateTopic, #btLinkValues, #btCreateForm').click(
				function() {
					storeValuesByIdsOfCheckButtons("chkTask_",
							"selectedIdsOfTasks", " ");
					document.getElementById("formTaskList").submit();
				});
	</script>

	<jsp:include page="../defaults/footer.jsp" />
</body>
</html>
